package cn.easier.activity.console.repository;

import cn.easier.activity.console.entity.LogsCount;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface LogsCountRepository extends JpaRepository<LogsCount, Long>, JpaSpecificationExecutor<LogsCount> {

    List<LogsCount> findByDay(String day);

    List<LogsCount> findByActivityIdAndDayIsNull(String activityId);

}
